package edu.ynmd.com.dao;

import edu.ynmd.com.model.Province;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ProvinceDao extends JpaRepository<Province,String> {
    @Query("select p from Province p where p.code=:sfbm")
    public List<Province> getProvinceByCode(@Param("sfbm")String sfbm);
}
